package mixins

import (
	"entgo.io/ent"
	"entgo.io/ent/schema/field"
	"entgo.io/ent/schema/mixin"
)

type TenantMixin struct {
	mixin.Schema
}

func (TenantMixin) Fields() []ent.Field {
	return []ent.Field{
		field.String("tenant_id").DefaultFunc(GetTenantID).Comment("Tenant ID"),
	}
}

func GetTenantID() string {
	return "single_tenant"
}
